package com.dwh.exception;

import com.dwh.msg.ResultEnum;

public class UserException extends RuntimeException {

	private static final long serialVersionUID = 1L;
	
	private Integer code;
	private String msg;
	
	public UserException(ResultEnum resultEnum) {
		super(resultEnum.getMsg());
		this.code = resultEnum.getCode();
		this.msg = resultEnum.getMsg();
		/*super(msg);
		this.code = code;
		this.msg = msg;*/
	}

	public Integer getCode() {
		return code;
	}

	public String getMsg() {
		return msg;
	}
	
	

}
